home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / ctgex2.z / ctgex2
Encoding:
Text File  |  2002-10-03  |  5.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4. CCCCTTTTGGGGEEEEXXXX2222((((3333SSSS))))                                                          CCCCTTTTGGGGEEEEXXXX2222((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CTGEX2 - swap adjacent diagonal 1 by 1 blocks (A11,B11) and (A22,B22)
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      SUBROUTINE CTGEX2( WANTQ, WANTZ, N, A, LDA, B, LDB, Q, LDQ, Z, LDZ, J1,
  13.                         INFO )
  14.  
  15.          LOGICAL        WANTQ, WANTZ
  16.  
  17.          INTEGER        INFO, J1, LDA, LDB, LDQ, LDZ, N
  18.  
  19.          COMPLEX        A( LDA, * ), B( LDB, * ), Q( LDQ, * ), Z( LDZ, * )
  20.  
  21. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  22.      These routines are part of the SCSL Scientific Library and can be loaded
  23.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  24.      directs the linker to use the multi-processor version of the library.
  25.  
  26.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  27.      4 bytes (32 bits). Another version of SCSL is available in which integers
  28.      are 8 bytes (64 bits).  This version allows the user access to larger
  29.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  30.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  31.      only one of the two versions; 4-byte integer and 8-byte integer library
  32.      calls cannot be mixed.
  33.  
  34. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  35.      CTGEX2 swaps adjacent diagonal 1 by 1 blocks (A11,B11) and (A22,B22) in
  36.      an upper triangular matrix pair (A, B) by an unitary equivalence
  37.      transformation.
  38.  
  39.      (A, B) must be in generalized Schur canonical form, that is, A and B are
  40.      both upper triangular.
  41.  
  42.      Optionally, the matrices Q and Z of generalized Schur vectors are
  43.      updated.
  44.  
  45.             Q(in) * A(in) * Z(in)' = Q(out) * A(out) * Z(out)'
  46.             Q(in) * B(in) * Z(in)' = Q(out) * B(out) * Z(out)'
  47.  
  48.  
  49.  
  50. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  51.      WANTQ   (input) LOGICAL
  52.  
  53.      WANTZ   (input) LOGICAL
  54.  
  55.      N       (input) INTEGER
  56.              The order of the matrices A and B. N >= 0.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCTTTTGGGGEEEEXXXX2222((((3333SSSS))))                                                          CCCCTTTTGGGGEEEEXXXX2222((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      A       (input/output) COMPLEX arrays, dimensions (LDA,N)
  75.              On entry, the matrix A in the pair (A, B).  On exit, the updated
  76.              matrix A.
  77.  
  78.      LDA     (input)  INTEGER
  79.              The leading dimension of the array A. LDA >= max(1,N).
  80.  
  81.      B       (input/output) COMPLEX arrays, dimensions (LDB,N)
  82.              On entry, the matrix B in the pair (A, B).  On exit, the updated
  83.              matrix B.
  84.  
  85.      LDB     (input)  INTEGER
  86.              The leading dimension of the array B. LDB >= max(1,N).
  87.  
  88.      Q       (input/output) COMPLEX array, dimension (LDZ,N)
  89.              If WANTQ = .TRUE, on entry, the unitary matrix Q. On exit, the
  90.              updated matrix Q.  Not referenced if WANTQ = .FALSE..
  91.  
  92.      LDQ     (input) INTEGER
  93.              The leading dimension of the array Q. LDQ >= 1; If WANTQ =
  94.              .TRUE., LDQ >= N.
  95.  
  96.      Z       (input/output) COMPLEX array, dimension (LDZ,N)
  97.              If WANTZ = .TRUE, on entry, the unitary matrix Z. On exit, the
  98.              updated matrix Z.  Not referenced if WANTZ = .FALSE..
  99.  
  100.      LDZ     (input) INTEGER
  101.              The leading dimension of the array Z. LDZ >= 1; If WANTZ =
  102.              .TRUE., LDZ >= N.
  103.  
  104.      J1      (input) INTEGER
  105.              The index to the first block (A11, B11).
  106.  
  107.      INFO    (output) INTEGER
  108.              =0:  Successful exit.
  109.              =1:  The transformed matrix pair (A, B) would be too far from
  110.              generalized Schur form; the problem is ill- conditioned. (A, B)
  111.              may have been partially reordered, and ILST points to the first
  112.              row of the current position of the block being moved.
  113.  
  114. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  115.      Based on contributions by
  116.         Bo Kagstrom and Peter Poromaa, Department of Computing Science,
  117.         Umea University, S-901 87 Umea, Sweden.
  118.  
  119.      In the current code both weak and strong stability tests are performed.
  120.      The user can omit the strong stability test by changing the internal
  121.      logical parameter WANDS to .FALSE.. See ref. [2] for details.
  122.  
  123.      [1] B. Kagstrom; A Direct Method for Reordering Eigenvalues in the
  124.          Generalized Real Schur Form of a Regular Matrix Pair (A, B), in
  125.          M.S. Moonen et al (eds), Linear Algebra for Large Scale and
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. CCCCTTTTGGGGEEEEXXXX2222((((3333SSSS))))                                                          CCCCTTTTGGGGEEEEXXXX2222((((3333SSSS))))
  137.  
  138.  
  139.  
  140.          Real-Time Applications, Kluwer Academic Publ. 1993, pp 195-218.
  141.  
  142.      [2] B. Kagstrom and P. Poromaa; Computing Eigenspaces with Specified
  143.          Eigenvalues of a Regular Matrix Pair (A, B) and Condition
  144.          Estimation: Theory, Algorithms and Software, Report UMINF-94.04,
  145.          Department of Computing Science, Umea University, S-901 87 Umea,
  146.          Sweden, 1994. Also as LAPACK Working Note 87. To appear in
  147.          Numerical Algorithms, 1996.
  148.  
  149.  
  150. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  151.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  152.  
  153.      This man page is available only online.
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.